import axios from '../utils/http'


// 广告管理 列表
export const commonAdvertisingList = (params) =>
    axios({
        url: '/v1/manager/banner',
        method: 'get',
        params
    })

// 广告管理 详情
export const commonAdvertisingListId = (params) =>
    axios({
        url: `/v1/manager/banner/${params}`,
        method: 'get',
    })


// 广告管理 添加
export const commonAdvertisingListAdd = (data) =>
    axios({
        url: '/v1/manager/banner',
        method: 'post',
        data
    })


// 广告管理 移动
export const commonAdvertisingListIdPut = (params) =>
    axios({
        url: `/v1/manager/banner/sort`,
        method: 'put',
        params
    })

// 广告管理 删除
export const commonAdvertisingListDelete = (params) =>
    axios({
        url: `/v1/manager/banner/${params}`,
        method: 'delete',
    })

// 地址 
export const commonDistrictList = (params) =>
    axios({
        url: '/v1/front/district', //传入请求地址
        method: 'get',
        params
    })

//-----------------------------
// 系统变量 
export const commonsystemData = (params) =>
    axios({
        url: '/v1/manager/system', //传入请求地址
        method: 'get',
        params
    })

// 系统变量 
export const commonsystemDataAdd = (data) =>
    axios({
        url: '/v1/manager/system', //传入请求地址
        method: 'post',
        data
    })

// 系统变量 
export const commonsetting = (params) =>
    axios({
        url: '/v1/manager/setting', //传入请求地址
        method: 'get',
        params
    })

// 系统变量 
export const commonsettingAdd = (data) =>
    axios({
        url: '/v1/manager/setting', //传入请求地址
        method: 'post',
        data
    })

// 快递查询
export const commonKuaidi = (params) =>
    axios({
        url: '/common/kuaidi', //传入请求地址
        method: 'get',
        params
    })